package com.yxw.springmvc.userBehavior.controller;

import com.yxw.springmvc.userBehavior.model.BasicPriv;
import com.yxw.springmvc.userBehavior.request.BasicPrivAddRequest;
import com.yxw.springmvc.userBehavior.service.BasicPrivManageService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * Created by hp on 2016/9/28.
 */
@Controller
@RequestMapping("/basicPriv")
public class BasicPrivManageController {

    @Resource
    private BasicPrivManageService basicPrivManageService;

    @RequestMapping("/add")
    @ResponseBody
    public BasicPriv add (BasicPrivAddRequest request){
        BasicPriv priv = basicPrivManageService.add(request);
        return priv;
    }
}
